package vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQueries({ @NamedQuery(name = "Source.findAll", query = "select s from Source s where type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findByEntry", query = "select s from Source s where entry=? and  type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findByName", query = "select s from Source s where name=? and  type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findByType", query = "select s from Source s where type=? and  type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findByNameType", query = "select s from Source s where name=? and type=? and  type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findTotalCount", query = "select count(*) from Source t where type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findTotalCountByName", query = "select count(*) from Source t where name=? and  type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findTotalCountByType", query = "select count(*) from Source t where type=? and  type!='METASE' and type!='WEIBO'"),
		@NamedQuery(name = "Source.findTotalCountByNameType", query = "select count(*) from Source t where name=? and type=? and  type!='METASE' and type!='WEIBO'") })
@Table(name = "source")
public class Source extends BaseEntity {

	private String name;

	String type;

	@Column(name = "entry")
	String entry;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getEntry() {
		return entry;
	}

	public void setEntry(String entry) {
		this.entry = entry;
	}

}
